import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

import labourCourse from 'common/src/router/subRouters/labourCourse'
import newermgr from 'common/src/router/subRouters/newermgr'
import fundManagement from 'common/src/router/subRouters/fundManagement' // 导师业务经费管理
import repairFee from 'common/src/router/subRouters/repairFee' // 重修酬金
import specialRolesManage from 'common/src/router/subRouters/specialRolesManage' // 校际交流 研究生
import competitionRegistration from 'common/src/router/subRouters/competitionRegistration' // 竞赛报名
import preparatoryGraduation from 'common/src/router/subRouters/preparatoryGraduation' // 预科毕业管理
import cultureAlter from 'common/src/router/subRouters/cultureAlter'
import myExaminations from 'common/src/router/subRouters/academicBehaviorNorms/myExaminations' // 行为规范-我的考试
import examination from 'common/src/router/subRouters/academicBehaviorNorms/examination' // 考试管理
import lessonManage from 'common/src/router/subRouters/academicBehaviorNorms/lessonManage' // 课程管理
import interGraduateGraduationManagement from 'common/src/router/subRouters/graduationManagement/internationalStudents/graduationManage' // 留学生毕业管理
import interCompleteGraduationManagement from 'common/src/router/subRouters/graduationManagement/internationalStudents/completeGraduation'
import scoreManagement from 'common/src/router/subRouters/scoreManagement' // 辅修微专业-成绩管理
import academicForum from 'common/src/router/subRouters/academicForum' // 国际学术论坛管理
import interSchoolExchange from 'common/src/router/subRouters/interSchoolExchange' // 校际交流 研究生
import paperBlindTrial from 'common/src/router/subRouters/paperBlindTrial' // 论文盲审
import competiManagement from 'common/src/router/subRouters/competiManagement' // 竞赛管理
import fileManagement from 'common/src/router/subRouters/fileManage' // 文件管理
import preDefense from 'common/src/router/subRouters/preDefense' // 预答辩
import internationalCommunication from 'common/src/router/subRouters/internationalCommunication' // 国际交流-研究生
import internationalExchanges from 'common/src/router/subRouters/internationalExchanges' // 国际交流-本科生
import completeGraduationManagement from 'common/src/router/subRouters/graduationManagement/completeGraduation'
import undergraduateGraduationManagement from 'common/src/router/subRouters/graduationManagement/undergraduate'
import switchAndResourceManagement from 'common/src/router/subRouters/switchAndResourceManagement' // 国际交流-研究生-开关与资源管理
import exempt from 'common/src/router/subRouters/exempt' // 免修免听
import externalExchange from 'common/src/router/subRouters/externalExchange' // 其他境外交流项目
import subjectCompetition from 'common/src/router/subRouters/subjectCompetition' // 学科竞赛

Vue.use(VueRouter) // 理论环节成绩管理

const routes = [
  {
    path: '/',
    name: 'Home',
    meta: {
      auth: true
    },
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    meta: {
      auth: true
    },
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  subjectCompetition,
  internationalExchanges,
  externalExchange,
  exempt,
  switchAndResourceManagement,
  undergraduateGraduationManagement,
  completeGraduationManagement,
  preDefense,
  paperBlindTrial,
  interGraduateGraduationManagement,
  interCompleteGraduationManagement,
  academicForum,
  internationalCommunication,
  interSchoolExchange,
  competiManagement,
  scoreManagement,
  lessonManage,
  examination,
  myExaminations,
  cultureAlter,
  specialRolesManage,
  preparatoryGraduation,
  competitionRegistration,
  repairFee,
  fileManagement,
  fundManagement,
  labourCourse,
  newermgr
]

export default routes
